#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    float as=this->windowOpacity();
    as=as+0.1;
    if(as>1.0)
    {
        return;
    }
    this->setWindowOpacity(as);
}

void Widget::on_pushButton_2_clicked()
{
    float as=this->windowOpacity();
    as=as-0.1;
    if(as<0)
    {
        return;
    }
    this->setWindowOpacity(as);
}
